package com.dingding.service.facade.common;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.facade.user.common.dto.special.driver.ReqValidateDTO;
import com.dingding.facade.user.facade.common.driver.IValidateFacade;
import com.dingding.service.core.common.service.IValidateService;

/**
 * 
 * @ClassName: ValidateFacadeImpl 
 * @Description: 验证服务接口实现类
 * @author YHQ
 * @date 2016年12月5日 上午11:05:16
 * @since V2.5.7
 * 
 */
@Component("validateFacade")
public class ValidateFacadeImpl implements IValidateFacade{

	@Resource(name = "validateService")
	private IValidateService validateService;
	
	/**
	 * 
	 * @Title: validateCode 
	 * @Description: 验证手机验证码 
	 * @param reqValidateDTO 要验证的手机号及验证码
	 * @author YHQ 
	 * @since V2.5.7 
	 * @return boolean true:验证码正确   false:验证码错误
	 * 
	 */
	@Override
	public boolean validateCode(ReqValidateDTO reqValidateDTO) {
		
		return validateService.validateCode(reqValidateDTO);
	}

}
